package com.android.datasave;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteDatabase.CursorFactory;

public class LogDataBase extends SQLiteOpenHelper {

	private static final String TABLE_LOG = "table_log";
	private static final String COL_DATE = "Date";
	private static final String COL_DATA = "Data";
	
	private static final String CREATE_DB = "CREATE TABLE " + TABLE_LOG 
			+ " (" + COL_DATE + " TEXT NOT NULL, " 
			+ COL_DATA + " TEXT NOT NULL);";
	
	public LogDataBase(Context context, String name, CursorFactory factory, int version) {
		super(context, name, factory, version);
	}
	
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(CREATE_DB);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub
		
	}
}
